package com.wenwu.dao;


import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.Function;
import com.wenwu.common.bean.FunctionExample;

public interface FunctionMapper extends Dao {
	int countByExample(FunctionExample example);

	int deleteByExample(FunctionExample example);

	int deleteByPrimaryKey(Integer functionId);

	int insert(Function record);

	int insertSelective(Function record);

	List<Function> selectByExample(FunctionExample example);

	Function selectByPrimaryKey(Integer functionId);

	int updateByExampleSelective(@Param("record") Function record,
			@Param("example") FunctionExample example);

	int updateByExample(@Param("record") Function record,
			@Param("example") FunctionExample example);

	int updateByPrimaryKeySelective(Function record);

	int updateByPrimaryKey(Function record);

	int veriKey(String code);//验证code

	int deleteFunctionByKey(List<?> list)throws SQLException;//批量刪除
}